<form method="post" action="/sys/auth/edit" enctype="multipart/form-data" class="pageForm required-validate" onsubmit="return iframeCallback(this, pageRefresh)">
	<input type="hidden" id="id" name="id" th:value="${entity.id}">
	<input type="hidden" id="cmd5" name="cmd5" value="">
	<input type="hidden" id="uid" name="uid" value="">
	<input type="hidden" id="randomData" name="randomData" value="">
	<div class="ibox no-margins no-padding no-borders">
		<div class="ibox-title p-xs ljFixBoxTitle">
			<div class="btn btn-sm btn-primary pull-right" id="btnEditSubmit"><i class="fa fa-paste">保存</i></div>
		</div>
		<div style="height:40px;"></div>
		<div class="ibox-content">
			<div class="row">
				<div class="form-group col-md-4">
					<label>授权方式(<b class="text-danger">*</b>):</label>
					<select th:field="${entity.authType}" name="authType" data-placeholder="请选择数据状态..." class="chosen-select" style="width:100%;">
						<option value="MD5" hassubinfo="true">MD5</option>
						<option value="RSA" hassubinfo="true">RSA</option>
						<option value="AES" hassubinfo="true">AES</option>
					</select>
				</div>
				<div class="form-group col-md-4">
					<label>授权ID(<b class="text-danger">*</b>):</label>
					<input name="authId" type="text" placeholder="" class="form-control input-sm required" maxlength="32" th:value="${entity.authId}">
				</div>
				<div class="form-group col-md-4">
					<label>授权值(<b class="text-danger">*</b>):</label>
					<input name="authValue" type="text" placeholder="" class="form-control input-sm required" maxlength="50"
						   th:value="${entity.authValue}">
				</div>
				<div class="form-group col-md-4">
					<label>授权用户(<b class="text-danger">*</b>):</label>
					<input name="authDesc" type="text" placeholder="" class="form-control input-sm required" maxlength="50"
						   th:value="${entity.authDesc}">
				</div>
				<div class="form-group col-md-4">
					<label>授权有效期(D)(<b class="text-danger">*</b>):</label>
					<input name="authAvailable" type="text" placeholder="" class="form-control input-sm required digits" maxlength="3"
						   th:value="${entity.authAvailable}">
				</div>
			</div>
			<div class="hr-line-dashed"></div>
			<div class="row">
				<div class="form-group col-md-4">
					<label>授权系统:</label>
					<input name="authOs" type="text" placeholder="" class="form-control" maxlength="128" th:value="${entity.authOs}">
				</div>
				<div class="form-group col-md-4">
					<label>授权软件:</label>
					<input name="authSoft" type="text" placeholder="" class="form-control" maxlength="128" th:value="${entity.authSoft}">
				</div>
				<div class="form-group col-md-4">
					<label>授权版本:</label>
					<input name="authVersion" type="text" placeholder="" class="form-control" maxlength="128" th:value="${entity.authVersion}">
				</div>
				<div class="form-group col-md-4">
					<label>授权IP地址:</label>
					<textarea name="authIp" class="form-control" rows="3">${entity.authIp}</textarea>
				</div>
				<div class="form-group col-md-4">
					<label>授权浏览器:</label>
					<textarea name="authAgent" class="form-control" rows="3">${entity.authAgent}</textarea>
				</div>
			</div>
		</div>
	</div>
</form>
<script>
	jQuery(function ($) {
		$(".chosen-select").chosen();
		$("#btnEditSubmit").on("click", function () {
			var values = {};
			modifyVerf(values);
			$("#cmd5").val(values.cmd5);
			$("#uid").val(values.uid);
			$("#randomData").val(values.randomData);
			$(this).closest("form").submit();
		});
	});
</script>